<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="" name="description">
<!-- 双核浏览器 -->
<meta content="webkit" name="renderer">
<title>公文</title>

<link href="${pageContext.request.contextPath}/css/font-awesome.min.css"	rel="stylesheet" />
<link href="${pageContext.request.contextPath}/css/ionicons.min.css"	rel="stylesheet" />
<link href="${pageContext.request.contextPath}/css/bootstrap.min.css"	rel="stylesheet" />
<link href="${pageContext.request.contextPath}/css/bootstrap.tooltip.extendtion.css"	rel="stylesheet" />
<link href="${pageContext.request.contextPath}/scripts/lib/bootstrap-daterangepicker/daterangepicker.css"	rel="stylesheet" />
<link href="${pageContext.request.contextPath}/scripts/lib/jquery.treegrid/css/jquery.treegrid.css"	rel="stylesheet" />
<link href="${pageContext.request.contextPath}/scripts/lib/stream/css/stream-v1.css"	rel="stylesheet" />
<link href="${pageContext.request.contextPath}/css/AdminLTE/skins/skin-blue.min.css"	rel="stylesheet" />
<link href="${pageContext.request.contextPath}/css/AdminLTE/AdminLTE.min.css"	rel="stylesheet" />
<link href="${pageContext.request.contextPath}/css/common.css" rel="stylesheet" />
<link href="${pageContext.request.contextPath}/css/loading-wheel.css" rel="stylesheet" />
<link href="${pageContext.request.contextPath}/workflow/form/css/form.css" rel="stylesheet"/>
</head>
<body class="skin-blue">
	<div class="wrapper">
		<header id="wf-toolbar" class="main-header handle"></header>
		<div class="content-wrapper" style="margin: 0; padding-top: 40px;">
			<!-- Main content -->
			<section class="content doc" style="width: 70%;">
				<div class="row doc-header">
					<div class="col-md-12 doc-title">${app.appName}</div>
				</div>
				<div class="row">
					<div class="col-md-12 doc-body">
						<div class="row border">
							<div class="col-md-6 opinion-area" activity="部门经理2">
								<div class="opinion-title doc-opinion-title">
									签发
								</div>
								<div class="opinion-list">
								</div>
							</div>
							<div class="col-md-6  border-left">
								<div class="row">
									<div class="col-md-12  opinion-area"  activity="审批">
										<div class="opinion-title doc-opinion-title">核签</div>
										<div class="opinion-list">
										</div>
									</div>
								</div>
								<div class="row border-top">
									<div class="col-md-12   opinion-area"  activity="部门会签">
										<div class="opinion-title doc-opinion-title">会签</div>
										<div class="opinion-list">
										</div>
									</div>
								</div>
							</div>
						</div>
						<form id="wf-form" class="form-horizontal">
						<div class="row form-row border-lr">
							<div class="col-md-4 font-weight form-row-col">
								晋粮办&nbsp;&nbsp;发[<input name="docYear" type="text" class="input-underline" value="${document.docYear}" style="width:40px">]&nbsp;&nbsp;<input name="docNum" type="text" class="input-underline" value="${document.docNum}" style="width:30px">号
							</div>
							<div class="col-md-4 font-weight border-left form-row-col">
								<div>密级：<input name="securityLevel" type="text" class="input-border" value=" " style="width:40px"></div>
							</div>
							<div  class="col-md-4 font-weight  border-left form-row-col">
								<div>期限：<input name="timeLimit" type="text" class="input-border" value=" " style="width:40px">&nbsp;&nbsp;年</div>
							</div>
						</div>
						<div class="row form-row border-top border-lr">
							<div class="col-md-1 form-row-col font-weight">标题：</div>
							<div class="col-md-11 form-row-col">
								<div class="form-content">
									<input name="workTitle" type="text" class="form-control" value="${document.docName}" required="true">
								</div>
							</div>
						</div>
						<div class="row form-row border-top border-lr">
							<div class="col-md-1 form-row-col font-weight">主送：</div>
							<div class="col-md-11 form-row-col">
							<c:choose>
							 	<c:when  test="${fieldCtl['mainSend']=='W'}">
							 		<div class="form-content"><input name="mainSend" type="text" class="form-control" value="${document.mainSend}" required="true"></div>
							 	</c:when>
							 	<c:when  test="${fieldCtl['mainSend']=='R'}">
							 		${document.mainSend}
							 	</c:when>
            					<c:otherwise></c:otherwise>
							</c:choose>
							</div>
						</div>
						<div class="row form-row border-top border-lr">
							<div class="col-md-1 form-row-col font-weight">抄送：</div>
							<div class="col-md-11 form-row-col">
							<div class="form-content"><input name="copySend" type="text" class="form-control" value="${document.copySend}" required="true"></div>
							</div>
						</div>
						<div class="row form-row border-top border-lr">
							<div class="col-md-12 form-row-col font-weight">附件：</div>
						</div>
						<div class="row border-top border-lr">
							<div class="col-md-3 opinion-area"   activity="承办处室">
								<div class="opinion-title doc-opinion-title">承办处室</div>
								<div class="opinion-list">
								</div>
							</div>
							<div class="col-md-3 border-left opinion-area"   activity="处室负责人">
								<div class="opinion-title doc-opinion-title">处室负责人</div>
								<div class="opinion-list">
								</div>
							</div>
							<div class="col-md-3 border-left opinion-area"  activity="拟稿人">
								<div class="opinion-title doc-opinion-title">拟稿人</div>
								<div class="opinion-list">
								</div>
							</div>
							<div class="col-md-3 border-left opinion-area" activity="校印">
								<div class="opinion-title doc-opinion-title">校印</div>
								<div class="opinion-list">
								</div>
							</div>
						</div>
						<div class="row form-row border-top border-lr">
							<div class="col-md-12 form-row-col">
								<div class="form-row-col-item font-weight">公开形式：</div>
								<div class="form-row-col-item">
    								<input type="radio" name="pubType"  value="1" style="margin:10px" checked>主动公开
  								</div>
 								<div class="form-row-col-item">
	   								<input type="radio" name="pubType"  value="2" style="margin:10px">依申请公开
 								</div>
							</div>
						</div>
						</form>
						<div class="row border-top border-lr">
							<table class="table table-bordered" id="attachmentTable">
                           		<thead>
			                        <tr>
			                            <th>附件名称</th>
			                            <th>上传者</th>
			                            <th>环节</th>
			                            <th>上传时间</th>
			                            <th>操作</th>
			                        </tr>
                           		</thead>
								<tbody></tbody>
							</table>
						</div>
						<div class="row border-lr border-bottom">
						 	<div class="col-md-12">
						 		<input name="uploadFileId" class="stream_upload" type="hidden"/>
						 	</div>
						</div>
					</div>
				</div>
			</section>
		</div>

	</div>
	<!-- 集中存放校验错误提示信息 -->
	<div class="tooltip-danger"></div>
</body>
<script type="text/javascript">
	var ctxPath = "${pageContext.request.contextPath}";
</script>
<script	src="${pageContext.request.contextPath}/scripts/lib/jquery/jquery.min.js"></script>
<script	src="${pageContext.request.contextPath}/scripts/lib/jquery-ui/jquery-ui-1.10.3.custom.js"></script>
<script	src="${pageContext.request.contextPath}/scripts/lib/bootstrap/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/scripts/dialog.js"></script>
<script src="${pageContext.request.contextPath}/scripts/util.js"></script>
<script src="${pageContext.request.contextPath}/scripts/progress-bar.js"></script>
<script src="${pageContext.request.contextPath}/scripts/global.js"></script>
<script src="${pageContext.request.contextPath}/scripts/shade-layer.js"></script>
<script src="${pageContext.request.contextPath}/scripts/loading.js"></script>

<script	src="${pageContext.request.contextPath}/scripts/lib/slimScroll/jquery.slimscroll.min.js"></script>
<script src="${pageContext.request.contextPath}/scripts/adminLTE.min.js"></script>

<!-- 表单验证脚本开始-->
<script	src="${pageContext.request.contextPath}/scripts/lib/jquery-form/jquery.form.js"></script>
<script	src="${pageContext.request.contextPath}/scripts/lib/jquery-validation/jquery.validate.js"></script>
<script	src="${pageContext.request.contextPath}/scripts/lib/jquery-validation/extendValidate.js"></script>
<script src="${pageContext.request.contextPath}/scripts/form.js"></script>
<!-- 表单验证脚本结束-->

<!-- ui插件开始-->
<script	src="${pageContext.request.contextPath}/scripts/lib/iCheck/icheck.min.js"></script>
<script	src="${pageContext.request.contextPath}/scripts/lib/treegrid/jquery.treegrid.js"></script>
<!-- ui插件结束-->

<!-- bootstrap-daterangepicker插件开始-->
<script	src="${pageContext.request.contextPath}/scripts/lib/bootstrap-daterangepicker/moment.min.js"></script>
<script	src="${pageContext.request.contextPath}/scripts/lib/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- bootstrap-daterangepicker插件结束-->

<!--表单流转脚本开始-->
<script	src="${pageContext.request.contextPath}/workflow/form/js/Module.js"></script>
<script	src="${pageContext.request.contextPath}/workflow/form/js/ActorModule.js"></script>
<script	src="${pageContext.request.contextPath}/workflow/form/js/OutComeModule.js"></script>
<script	src="${pageContext.request.contextPath}/workflow/form/js/FormModule.js"></script>
<script	src="${pageContext.request.contextPath}/workflow/form/js/Menu.js"></script>
<script	src="${pageContext.request.contextPath}/workflow/form/js/ToolbarModule.js"></script>
<script	src="${pageContext.request.contextPath}/workflow/form/js/ApprovalModule.js"></script>
<script	src="${pageContext.request.contextPath}/workflow/form/js/FlowLogModule.js"></script>
<script	src="${pageContext.request.contextPath}/workflow/form/js/EditDocModule.js"></script>
<script	src="${pageContext.request.contextPath}/workflow/form/js/AttachmentModule.js"></script>
<script	src="${pageContext.request.contextPath}/workflow/form/js/Engine.js"></script>
<!--表单流转脚本结束-->
<!-- stream上传组件脚本开始 -->
<script type="text/javascript"	src="${pageContext.request.contextPath}/scripts/lib/stream/js/stream-v1.js"></script>
<script type="text/javascript"	src="${pageContext.request.contextPath}/scripts/lib/stream/js/streamMiniExpand.js"></script>
<!-- stream上传组件脚本结束 -->
<script>
	$(function() {
		//日历组件初始化
		$('.config-date').each(
				function() {
					$(this).daterangepicker(
							{
								"singleDatePicker" : true,
								"showDropdowns" : true,
								"opens" : "left",
								"locale" : {
									"format" : "YYYY/MM/DD",
									"separator" : " - ",
									"applyLabel" : "应用",
									"cancelLabel" : "取消",
									"fromLabel" : "从",
									"toLabel" : "到",
									"daysOfWeek" : [ '日', '一', '二', '三', '四',
											'五', '六' ],
									"monthNames" : [ '一月', '二月', '三月', '四月',
											'五月', '六月', '七月', '八月', '九月', '十月',
											'十一月', '十二月' ],
									"firstDay" : 1
								},
							}, function(start, end, label) {
							});
				});

		var engine = new Engine({
			"readOnly": ${readOnly},
			"menuCtl":'${menuCtlJson}',
			"todoId" : "${todo.todoId}",
			"workId" : "${work.workId}",
			"appId":"${app.appId}",
			"activity":"${todo.activityName}"
		});

		$("#i_select_files0").remove("stream-browse-files").addClass({

		});
	});
</script>
</html>